import { axios } from '@/utils/request'

/**
 * 分页查询网关温度
 *
 * @author ssy
 * @date 2022/08/12 16:00
 */
export function page (parameter) {
    return axios({
        url: '/bizGatewayTemperature/page',
        method: 'get',
        params: parameter
    })
}
/**
 * 查询最近7天的温度
 *
 * @author rdp
 * @date 2022/10/29 15:39
 */
export function getTemperatureByDate (parameter) {
  return axios({
    url: '/bizGatewayTemperature/getTemperatureByDate',
    method: 'get',
    params: parameter
  })
}
/**
 * 增加网关温度
 *
 * @author ssy
 * @date 2022/08/12 16:00
 */
export function add (parameter) {
  return axios({
    url: '/bizGatewayTemperature/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑网关温度
 *
 * @author ssy
 * @date 2022/08/12 16:00
 */
export function edit (parameter) {
  return axios({
    url: '/bizGatewayTemperature/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 查看详情网关温度
 *
 * @author ssy
 * @date 2022/08/12 16:00
 */
export function detail (parameter) {
  return axios({
    url: '/bizGatewayTemperature/detail',
    method: 'get',
    params: parameter
  })
}

/**
 * 删除网关温度
 *
 * @author ssy
 * @date 2022/08/12 16:00
 */
export function del (parameter) {
  return axios({
    url: '/bizGatewayTemperature/delete',
    method: 'post',
    data: parameter
  })
}
